package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.OaIndustryAffiliationMapper;
import com.ruoyi.system.domain.OaIndustryAffiliation;
import com.ruoyi.system.service.IOaIndustryAffiliationService;

/**
 * 所属行业Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-01
 */
@Service
public class OaIndustryAffiliationServiceImpl implements IOaIndustryAffiliationService 
{
    @Autowired
    private OaIndustryAffiliationMapper oaIndustryAffiliationMapper;

    /**
     * 查询所属行业
     * 
     * @param id 所属行业主键
     * @return 所属行业
     */
    @Override
    public OaIndustryAffiliation selectOaIndustryAffiliationById(Long id)
    {
        return oaIndustryAffiliationMapper.selectOaIndustryAffiliationById(id);
    }

    /**
     * 查询所属行业列表
     * 
     * @param oaIndustryAffiliation 所属行业
     * @return 所属行业
     */
    @Override
    public List<OaIndustryAffiliation> selectOaIndustryAffiliationList(OaIndustryAffiliation oaIndustryAffiliation)
    {
        return oaIndustryAffiliationMapper.selectOaIndustryAffiliationList(oaIndustryAffiliation);
    }

    /**
     * 新增所属行业
     * 
     * @param oaIndustryAffiliation 所属行业
     * @return 结果
     */
    @Override
    public int insertOaIndustryAffiliation(OaIndustryAffiliation oaIndustryAffiliation)
    {
        return oaIndustryAffiliationMapper.insertOaIndustryAffiliation(oaIndustryAffiliation);
    }

    /**
     * 修改所属行业
     * 
     * @param oaIndustryAffiliation 所属行业
     * @return 结果
     */
    @Override
    public int updateOaIndustryAffiliation(OaIndustryAffiliation oaIndustryAffiliation)
    {
        return oaIndustryAffiliationMapper.updateOaIndustryAffiliation(oaIndustryAffiliation);
    }

    /**
     * 批量删除所属行业
     * 
     * @param ids 需要删除的所属行业主键
     * @return 结果
     */
    @Override
    public int deleteOaIndustryAffiliationByIds(Long[] ids)
    {
        return oaIndustryAffiliationMapper.deleteOaIndustryAffiliationByIds(ids);
    }

    /**
     * 删除所属行业信息
     * 
     * @param id 所属行业主键
     * @return 结果
     */
    @Override
    public int deleteOaIndustryAffiliationById(Long id)
    {
        return oaIndustryAffiliationMapper.deleteOaIndustryAffiliationById(id);
    }
}
